Steppping motor control apparatus, stepping motor control method, and stepping motor control program product

ABSTRACT

There are included a control circuit to control sequence of excitation of a stepping motor, a switching circuit to switch electric power to be supplied to the stepping motor based on an instruction from the control circuit, and a stop circuit to stop an operation of the switching circuit in a case where temperature of the switching circuit becomes a specified temperature or higher, and the control circuit controls the switching circuit in a mode where the stop circuit operates before the stepping motor is damaged by heat

BACKGROUND OF THE INVENTION

1. Technical Field of the Invention

The present invention relates to a stepping motor control apparatus, astepping motor control method and a stepping motor control programproduct.

2. Description of the Related Art

A conventional stepping motor control apparatus generally adopts such amethod that reference is made to a table indicating a relation betweenthe position of a rotator of a stepping motor and the phase ofexcitation, the excitation current corresponding to the position of therotator is made to flow, and the rotator is rotated to a desired angle(see JP-A-2002-281788 (Abstract, Claims)).

In the conventional stepping motor control apparatus, in the case wherefor example, a program for control runs away, since current continues tobe supplied to the stepping motor, there is a problem that the steppingmotor is heated and is burnt out in some cases.

SUMMARY OF THE INVENTION

The invention has been made in view of the above circumstances, and hasan object to provide a stepping motor control apparatus, a steppingmotor control method, and a stepping motor control program product, inwhich even in the case where a program or the like runs away, it ispossible to prevent a stepping motor from being burnt out.

In order to achieve the foregoing object, according to an aspect of theinvention, a stepping motor control apparatus includes a control circuitto control sequence of excitation of a stepping motor, a switchingcircuit to switch electric power to be supplied to the stepping motorbased on an instruction from the control circuit, and a stop circuit tostop an operation of the switching circuit in a case where temperatureof the switching circuit becomes a specified temperature or higher, andthe control circuit controls the switching circuit in a mode where thestop circuit operates before the stepping motor is damaged by heat.

Accordingly, the stepping motor control apparatus can be provided whichcan prevent the stepping motor from being burnt out even in the casewhere a program or the like runs away.

Besides, according to a stepping motor control apparatus of anotheraspect of the invention, in addition to the foregoing invention, thecontrol circuit adjusts an off time as a time in which a switchconstituting the switching circuit keeps an off state and controls theswitching circuit in the mode where the stop circuit operates before thestepping motor is damaged by heat Thus, by adjusting the off time, it ispossible to easily prevent the stepping motor from being damaged by heat

Besides, according to a stepping motor control apparatus of anotheraspect of the invention, in addition to the foregoing invention, thecontrol circuit adjusts the off time in accordance with a set value ofcurrent to be outputted to the stepping motor. Thus, irrespective of theset current value, it is possible to always stably prevent the steppingmotor from being burnt out by heat.

Beside, according to a stopping motor control apparatus of anotheraspect of the invention, in addition to the foregoing invention, thecontrol circuit adjusts the off time according to a kind of decay of theswitching circuit. Thus, irrespective of the kind of the decay, it ispossible to certainly prevent the stepping motor from being damaged byheat.

Besides, according to another aspect of the invention, a stepping motorcontrol method is a control method for a stepping motor controlapparatus including a control circuit to control sequence of excitationof a stepping motor, a switching circuit to switch electric power to besupplied to the stepping motor based on an instruction from the controlcircuit, and a stop circuit to stop an operation of the switchingcircuit in a case where temperature of the switching circuit becomes aspecified temperature or higher, and the control circuit controls theswitching circuit in a mode where the stop circuit operates before thestepping motor is damaged by heat.

Accordingly, the stepping motor control method can be provided which canprevent the stepping motor from being burnt out even in the case where aprogram or the like runs away.

Besides, according to another aspect of the invention, a stepping motorcontrol program is a control program for a stepping motor controlapparatus including a control circuit to control sequence of excitationof a stepping motor, a switching circuit to switch electric power to besupplied to the stepping motor based on an instruction from the controlcircuit, and a stop circuit to stop an operation of the switchingcircuit in a case where temperature of the switching circuit becomes aspecified temperature or higher, and the switching circuit is controlledin a mode where the stop circuit operates before the stepping motor isdamaged by heat.

Accordingly, the stepping motor control program can be provided whichcan prevent the stepping motor from being burnt out oven in the casewhere a program or the like runs away.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a view showing a structural example of a printing apparatus ofan embodiment of the invention;

FIG. 2 is a view showing a structural example of a tube pump of theprinting apparatus shown in FIG. 1;

FIG. 3 is a view showing a structural example of the tube pump of theprinting apparatus shown in FIG. 1;

FIG. 4 is a view showing a structural example of a control system of theprinting apparatus shown in FIG. 1;

FIG. 5 is a view showing a detailed structural example of a motorcontrol circuit shown in FIG. 4;

FIGS. 6A and 6B are views each showing a structural example of a drivecircuit shown in FIG. 5;

FIGS. 7A and 7B are views each showing an output current waveform of thedrive circuit shown in FIG. 6;

FIGS. 8A and 8B are views each explaining an off time and an on time ofthe drive circuit shown in FIG. 6;

FIG. 9 is a view showing a relation among a current set value, a decayand an off time;

FIG. 10 is a view showing a relation between a heat generation amountand an off time;

FIG. 11 is a view showing a relation between a heat generation amountand an off time;

FIG. 12 is a view showing a relation between a heat generation amountand an off time; and

FIG. 13 is a view showing an output current waveform in a mixed decay.

DETAILED DESCRIPTION OF THE INVENTION

Hereinafter, an embodiment of the invention will be described withreference to the drawings.

FIG. 1 is a view showing a structural example of a printing apparatususing a stopping motor control apparatus of an embodiment of theinvention. Hereinafter, the embodiment of the invention will bedescribed with reference to FIGS. 1 to 9. FIG. 1 is a perspective viewshowing the basic structure of a printing apparatus 10 of thisembodiment As shown in FIG. 1, the printing apparatus 10 includes a base11, and a carriage 12 is constructed to freely reciprocate with respectto the base 11.

The carriage 12 constitutes an ink-jet recording head body 13, and canmount therein a cartridge 13 a for black ink and a cartridge 13 b foryellow, cyan and magenta. A recording head 15 is provided below thecarriage 12 so as to be opposed to a recording sheet 14. A lower endface of the recording head 15 is a nozzle formation face 15 a, and candischarge ink.

A part of a timing belt 16 is fixed to this carriage 12. An insertionhole 17 is formed in the carriage 12, and a long guide shaft 18 can beinserted through this insertion hole 17. Thus, when a carriage motor 19is rotated, the timing belt 16 is driven, and the carriage 12 is movedalong the guide shaft 18 by the driving of this timing belt 16.

A roller member 20 is rotatably provided on a lower side of the insideof the base 11. The roller member 20 is provided to be rotatable by agear train 21 existing on the other end side of the base 11. Therecording sheet 14 supplied to the printing apparatus 10 is moved in thesub-scanning direction of the recording head 15 by the rotation of theroller member 20. In order to rotation-drive the roller member 20, anot-shown paper feed motor is provided on the other end side of theinside of the base 11.

Here, the roller member 20 is provided only in a region (printingregion) where printing is performed to the maximum in the inside of thebase 11. A non-printing region where the roller member 20 is notprovided in the inside of the base 11 is a home position where anafter-mentioned cap unit 40 is provided.

On the bottom side of the base 11 in the home position 22, a tube pump30 as a suction pump as shown in FIG. 2 and FIG. 3 is provided. The tubepump 30 includes a pump frame 32 whose plane shape is an arc, and aflexible tube 31 is disposed along the inside surface of the pump frame32. Its one end (right end in the drawing) is connected to a not-shownconnection pipe of a cap head 90, and the other end (lower end of thedrawing) is connected to a not-shown waste liquid tank.

Roller support grooves 34 a and 34 b are provided in a pump wheel 33 ofthe tube pump 30. Roller support shaft 35 a and 35 b are insertedtherein, and hold support rollers 36 a and 36 b rotatably and movably.Insertion openings 39 a and 39 b are provided at ends of the rollersupport grooves 34 a and 34 b, and the roller support shafts 35 a 35 bare inserted from the portions at the time of assembly. Engagementgrooves 37 a and 37 b each recessed in a substantially L shape areformed in part of the pump frame 32, and guide members 38 a and 38 bformed of elastic member are fitted therein. The tube pump 30 as statedabove performs a suction operation when the pump wheel 33 is driven byan after-mentioned stepping motor 121.

As shown in FIG. 2, when the pump wheel 33 is driven in the clockwisedirection (direction of an arrow A), since the guide members 38 a and 38b press the rollers 36 a and 36 b in the counterclockwise direction, therollers 36 a and 36 b moves to the ends opposite to the insertionopenings 39 a and 39 b of the roller support grooves 34 a and 34 b.Here, since the diameters of the roller support grooves 34 a and 34 bbecome large toward the direction opposite to the insertion openings 39a and 39 b, the rollers 36 a and 36 b move toward the outside. As aresult since the rollers 36 a and 36 b rotate while pressing theflexible tube 31 toward the outside, the liquid and gas in the inside ofthe flexible tube 31 are moved in the direction of the arrow A. As aresult, the ink is moved from the cap head 90 to the waste liquid tank.

As shown in FIG. 3, when the pump wheel 33 is driven in thecounterclockwise direction (direction of an arrow B), since the guidemembers 38 a and 38 b press the rollers 36 a 36 b in the clockwisedirection, the rollers 36 a and 36 b move toward the insertion openings39 a and 39 b of the roller support grooves 34 a and 34 b. As a result,the rollers 36 a and 36 b move toward the inside, and there occurs astate where the rollers 36 a and 36 b are in slight contact with theflexible tube 31. Thus, by keeping this state, it is possible to preventthe inner walls of the flexible tube 31 from adhering to each other.

Next, a control system of the printing apparatus shown in FIG. 1 will bedescribed. FIG. 4 is a block diagram showing the control system of theprinting apparatus shown in FIG. 1. As shown in this drawing, thecontrol system of the printing apparatus includes a CPU (CentralProcessing Unit) 110, a ROM (Read Only Memory) 111, a RAM (Random AccessMemory) 112, an EEPROM (Electrically Erasable and Programmable ROM) 113,an I/F (Interface) 114, an I/O (Input and Output) 115, a bus 116, aninput/output circuit 117, a motor control circuit 120, a stepping motor121, a sensor 122, a recording head driver circuit 123, and a recordinghead 115. A personal computer (PC) is connected to the I/F 114.

Here, the CPU 110 performs various arithmetic processings according toprograms stored in the ROM 111 and the EEPROM 113, and controls therespective parts of the apparatus including the stepping motor 121.

The ROM 111 is a semiconductor memory storing various programs andvarious data to be executed by the CPU 110.

The RAM 112 is a semiconductor memory to temporarily store programs anddata which become execution objects of the CPU 110.

The EEPROM 113 is a semiconductor memory in which specified data ofresults of the arithmetic processing of the CPU 110 are stored and thedata is held even after the power supply of the printing apparatus iscut off.

The I/F 114 is a device to suitably transform a representation format ofdata when information is given to and received from the personalcomputer 130.

The bus 116 is a signal line group to mutually connect the CPU 110, theROM 111, the RAM 112, the EEPROM 113, the I/F 114 and the I/O 115 and toenable information to be given and received among them.

The motor control circuit 120 includes a logic circuit and a drivecircuit as described later, and controls the stepping motor 121according to the control of the CPU 110.

The stepping motor 121 is constructed of, for example, a two-phasestepping motor, and drives the tube pump 30 shown in FIG. 2 and FIG. 3according to the control of the motor control circuit 120.

Incidentally, in the example shown in FIG. 4, although only the steppingmotor 121 to drive the tube pump 30 is shown, actually, a not-shownstepping motor to drive the roller member 20, and a stepping motor(carriage motor 19) to drive the carriage 12 in the main scanningdirection are also controlled by a control circuit similar to the motorcontrol circuit 120.

The sensor 122 includes, for example, a recording sheet sensor, an inkremaining amount sensor, an accumulated working time sensor and thelike, detects various states of the printing apparatus, and outputs themto the I/O 115 through the input/output circuit 117.

The recording head driver circuit 123 is connected to the recording head15 and is a driver to perform control for discharging ink. As describedbefore, the recording head 15 discharges inks of various colors fromplural nozzles according to the control of the recording head drivercircuit 123, and prints a desired image and character on the recordingsheet 14.

FIG. 5 is view showing a detailed structural example of the motorcontrol circuit 120. As shown in this figure, the motor control circuit120 includes, as main components, a logic circuit 120 a, a drive circuit120 b, and a thermal shutdown circuit 120 c.

Here, the logic circuit 120 a as the control circuit receives set datafrom the CPU 110 through the input/output circuit 117, sets theoperation environment, and controls the drive circuit 120 b according tothe control data supplied from the CPU 110. The drive circuit 120 b as aswitching circuit switches electric power supplied from a not-shownpower source based on the control of the logic circuit 120 a, and drivesthe stepping motor 121.

More specifically, the motor control circuit 120 determines the currentamount of chopping current to be outputted to the A-phase and B-phasebased on the control data supplied from the CPU 110. Besides, the motorcontrol circuit 120 sets the decay of the chopping current based on thecontrol data supplied from the CPU 110. The decay indicates theregenerative method of current at the chopping off time, and includes aslow decay, a fast decay, and a mixed decay. The slow decay is a methodin which a switching transistor is held in an on state, and the currentis regenerated through the transistor. The fast decay is a method inwhich the transistor is brought into an off state, and the current isregenerated through a diode for regeneration. The mixed decay is amethod in which these are mixed.

FIGS. 6A and 6B are views each explaining the details of the drivecircuit 120 b. FIG. 6A is a view for explaining the operation of theslow decay. Here, the drive circuit 120 b includes, as main components,transistors Q1 to Q4, diodes D1 to D4, a coil L, a resistor R, a powersource V1, a reference voltage source V2, and a comparator C. Here, thetransistors Q1 to Q4 switch the current flowing to the coil L. Thediodes D1 to D4 are diodes for a flywheel (regeneration). The coil L isa coil for excitation incorporated in the stepping motor 121. The powersource V1 supplies power source electric power to the stepping motor121. The resistor R is a resistor for detecting the current flowing tothe coil L. The reference voltage source V2 supplies a reference voltageto the comparator C. The comparator C compares the current flowing tothe coil L with the reference voltage, and outputs a signal according toits intensity.

Here, the operation in the case where the electric power is supplied tothe coil L is the same in both the slow decay and the fast decay. Asindicated by alternate long and short dash lines in FIGS. 6A and 6B, thetransistors Q3 and Q2 are simultaneously brought into on states, and theelectric power is supplied to the coil L through the transistor Q3, thecoil L, the transistor Q2, and the resistor R.

In the case where the supply of the electric power to the coil L isstopped, in the slow decay, as shown in FIG. 6A, the transistor Q3 isbrought into an off state, and the transistor Q2 keeps the on state. Asa result, the regenerative current from the coil L flows through thediode D4, the transistor Q2, and the resistor R as indicated by a brokenline.

On the other hand, in the case of the fast decay, when the supply of theelectric power to the coil L is stopped, as shown in FIG. 6B, both thetransistors Q3 and the transistor Q2 are brought into off states. As aresult, the regenerative current from the coil L flows to the powersource V1 through the diode D4 and the diode D1 as indicated by a brokenline.

In the case of the slow decay, by the influence of the on resistor ofthe transistor Q2 and the resistor R, the decrease of the regenerativecurrent becomes gentle as compared with the case of the fast decay. FIG.7A shows the waveform of the current flowing to the coil L in the caseof the slow decay. FIG. 7B shows the waveform of the current flowing tothe coil L in the case of the fast decay. From the comparison of thesefigures, in the fast decay, the attenuation of the current is steep ascompared with the slow decay. Besides, in the fast decay, as comparedwith the slow decay, a current amplitude “a” is large. From these, inthe fast decay, since the current waveform is abruptly attenuated, ascompared with the slow decay, the responsiveness of the control is high.However, since the current amplitude “a” is large, the operation-soundis large, and the loss is also large. The mixed decay in which the fastdecay and the slow decay are combined has both of these features.

The motor control circuit 120 sets, based on the set data supplied fromthe CPU 110, an off time in which the transistor of the drive circuit120 b is in an off state. FIGS. 8A and 8B are views each explaining theoff time. FIGS. 8A and 8B are views for explaining the operations of thecases where different off times are set. When the transistor is broughtinto the on state, the current flowing to the coil L is increased, andwhen the current reaches a current value determined by an instructionvalue, the transistor is brought into the off state, and the current isdecreased. When the time set by the off time has passed, the transistoris again brought into the on state, and the operation similar to theforegoing case is repeated. The on time is determined by the inductancevalue of the coil L and the resistance value of the closed circuit.Accordingly, in the case where the off time is set to be short (in thecase of FIG. 8B), the switching frequency becomes high. On the otherhand, in the case where the off time is set to be long (in the case ofFIG. 8A), the switching frequency becomes low.

Referring back to FIG. 5, the thermal shutdown circuit 120 c as a stopcircuit detects the temperature of the motor control circuit 120, and inthe case where the detected temperature exceeds, for example, 140° C.,the operation of the drive circuit 120 b is stopped, and the motorcontrol circuit 120 is protected. In the circuits constituting the motorcontrol circuit 120, since the heat generation amount of the drivecircuit 120 b is largest, the thermal shutdown circuit 120 c is disposedin the vicinity of the drive circuit 120 b, and the heat of the portionmay be detected.

Next, the operation of the above embodiment will be described.

In the case where the instruction of a specified process is issued fromthe personal computer 130, the CPU 110 controls the motor controlcircuit 120 based on the program stored in the ROM 111 as the needarises and drives the stepping motor 121.

For example, in the case where the instruction to drive the steppingmotor 121 (for example, the instruction of a process to clean therecording head 15) is issued, the CPU 110 supplies the set data to themotor control circuit 120 and performs the setting. Specifically, theset data to select one of the fast decay and the slow decay shown inFIGS. 6A to 7B is sent, and the value of the output current flowing tothe coil L is set. As the output current, a selection is made among, forexample, 100%, 60% and 20%.

When the setting of the decay and the current value is ended, the CPU110 sets the off time according to the current set value and the kind ofthe decay. FIG. 9 is a view showing a table storing a relation among thecurrent set value, the kind of the decay and the off time. In thisfigure, the current set value indicates a percentage to the maximumvalue of current which can be made to flow to the drive circuit 120. Thedecay is one of the fast decay and the slow decay. As shown in FIGS. 8Aand 8B, the off time is a time in which the transistor is continuouslyin the off state after the current reaches the instruction value. Fromthe table shown in FIG. 9, for example, in the case where the currentset value is 100%, when the decay is the fast decay, the set value ofthe off time is 35 μs. Incidentally, such information is stored in theROM 111, and the CPU 110 reads it as the need arises, and supplies it tothe motor control circuit 120.

The logic circuit 120 a stores the current value supplied from the CPU110, the kind of the decay, and the information indicating the time intoa not-shown register, and controls the drive circuit 120 b based onthese stored values.

Here, the off time shown in FIG. 9 is determined from the viewpoint asdescribed below. That is, in the case where the CPU 110 itself runs awayby heat, or a program executed by the CPU 110 has, for example, a bugand runs away because of it, the stepping motor 121 is put in a statewhere electric power continues to be supplied. In the case as statedabove, the stepping motor 121 generates heat, and is damaged by heat insome cases. Then, in this embodiment, the off time is adjusted, so thatthe thermal shutdown circuit 120 c is operated before the stepping motor121 is damaged by heat, and the supply of the current to the steppingmotor 121 is interrupted.

FIG. 10 is a view showing a relation between the off time and the heatgeneration amount of the motor control circuit 120 and between the offtime and the heat generation amount of the stepping motor 121 in thecase where the decay is set to be the fast decay and the current setvalue is made 60%. FIG. 10A shows the relation between the off time andthe heat generation amount of the motor control circuit 120, a curve C11indicates the relation between the off time and the heat generationamount of the motor control circuit 120 in the case where duty is 100%,and a curve C12 indicates the relation between the off time and the heatgeneration amount of the motor control circuit 120 in the case where theduty is 80%. FIG. 10B shows the relation between the off time and theheat generation amount of the stepping motor 121, a curve C13 indicatesthe relation between the off time and the heat generation amount of thestepping motor 121 in the case where the duty is 100%, and a curve C14indicates the relation between the off time and the heat generationamount of the stepping motor 121 in the case where the duty is 80%.

Here, the duty indicates an operating rate of the stepping motor 121 pera specified time. In the case where the duty is 100%, the operating ratein the case where the CPU 110 runs away is supposed. In the case wherethe duty is 80%, the maximum operating rate at a normal use time issupposed.

A stepping motor burnout area where the heat generation amount becomesQ2 or higher indicates an area where there is a possibility that thestepping motor 121 is burnt out by heat generation. A thermal shutdownarea where the heat generation amount becomes Q1 or higher indicates anarea where the thermal shutdown circuit 120 c operates.

As shown in FIG. 10A, in the motor control circuit 120, when the offtime becomes short, the switching frequency of the transistor becomeshigh, and therefore, the heat generation amount increases. When the heatgeneration amount becomes Q1 or higher, the thermal shutdown area iscaused where the thermal shutdown circuit 120 c operates. As shown inFIG. 10B, in the stepping motor 121, when the off time becomes short,the iron loss (especially eddy-current loss) is increased, andtherefore, the heat generation amount is increased. When the heatgeneration amount becomes Q2 or higher, the stepping motor burnout areais caused where the stepping motor 121 is burnt out. In this embodiment,in such a case, a specified value between T11 and T12 is used as the offtime. That is, when the off time is T11 or shorter, in the case wherethe duty is 100%, the heat generation amount of the stepping motor 121exists in the stepping motor burnout area, and therefore, it isnecessary that the off time is set to be T11 or longer. When the offtime is T12 or longer, in the case where the duty is 100%, the motorcontrol circuit 120 does not exist in the thermal shutdown area, andtherefore, it is necessary that the off time is set to be T12 orshorter.

In the example of FIG. 10, T1 as the center value between T11 and T12 isused as the off time. When T1 as stated above is used as the off time,for example, in the case where the program runs away and the dutybecomes 100%, the thermal shutdown circuit 120 c operates, and theoperation of the stepping motor 121 is stopped. On the other hand, inthe case where the duty is 80% or lower (at the time of normaloperation), since the heat generation amount does not fall within thethermal shutdown area, the thermal shutdown circuit 120 c does notoperate. Besides, as shown in FIG. 10B, in the case where the off timeis T1, since the heat generation amount does not fall within the thermalshutdown area both in the case where the duty is 100% and in the casewhere the duty is 80%, it is possible to prevent the stepping motor 121from being burnt out.

Accordingly, in the case shown in FIG. 10, when the off time is set toT1, even at the time of runaway, it is possible to prevent the steppingmotor 121 from being burnt out, and the thermal shutdown circuit 120 coperates to stop the supply of the electric power to the stepping motor121, and therefore, it is possible to prevent the stepping motor 121from being heated.

FIG. 11 is a view showing a relation between the off time and the heatgeneration amount of the motor control circuit and between the off timeand the heat generation amount of the stepping motor 121 in the casewhere the decay is set to be the fast decay and the current set value ismade 100%. FIG. 11A shows the relation between the off time and the heatgeneration amount of the motor control circuit 120, a curve C21indicates the relation between the off time and the heat generationamount of the motor control circuit 120 in the case where the duty is100%, and a curve C22 indicates the relation between the off time andthe heat generation amount of the motor control circuit 120 in the casewhere the duty is 80%. FIG. 11B shows the relation between the off timeand the heat generation amount of the stepping motor 121, a curve C23indicates the relation between the off time and the heat generationamount of the stepping motor 121 in the case where the duty is 100%, anda curve C24 indicates the relation between the off time and the heatgeneration amount of the stepping motor 121 in the case where the dutyis 80%. When a comparison is made with the case of FIG. 10, although thedecay is the fast decay in both the cases, the current set value isincreased from 60% to 100%, and therefore, as the heat generaon amountis increased, the whole graph shifts to the right of the figure.

In the example of FIG. 11, T2 as the center value between T21 and T22 isused as the off time. When T2 as stated above is used as the off time,similarly to the forgoing case, for example, in the case where theprogram runs away and the duty becomes 100%, the thermal shutdowncircuit 120 c operates, and the operation of the stepping motor 121 isstopped. On the other hand, in the case where the duty is 80%, since theheat generation amount does not fall within the thermal shutdown area,the thermal shutdown circuit 120 c does not operate. As shown in FIG.11B, in the case where the off time is T2, since the heat generationamount does not fall within the stepping motor burnout area both in thecase where the duty is 100% and in the case where the duty is 80%, it ispossible to prevent the stepping motor from being burnt out.

FIG. 12 is a view showing a relation between the off time and the heatgeneration amount of the motor control circuit 120 and between the offtime and the heat generation amount of the stepping motor 121 in thecase where the decay is set to be the slow decay and the current setvalue is made 60%. FIG. 12A shows the relation between the off time andthe heat generation amount of the motor control circuit 120, a curve C31indicates the relation between the off time and the heat generationamount of the motor control circuit 120 in the case where the duty is100%, and a curve C32 indicates the relation between the off time andthe heat generation amount of the motor control circuit 120 in the casewhere the duty is 80%. FIG. 12B shows the relation between the off timeand the heat generation amount of the stepping motor 121, a curve C33indicates the relation between the off time and the heat generationamount of the stepping motor 121 in the case where the duty is 100%, anda curve C34 indicates the relation between the off time and the heatgeneration amount of the stepping motor 121 in the case where the dutyis 80%. When a comparison is made with the case of FIG. 10, althoughboth are the same in that the current set value is 60%, the decay ischanged from the fast decay to the slow decay, and therefore, as theheat generation amount is decreased, the whole graph shifts to the leftof the figure.

In the example of FIG. 12, T3 as a value between T31 and T32 is used asthe off time. When T3 as stated above is used as the off time, similarlyto the foregoing case, for example, in the case where the program runsaway and the duty becomes 100%, the thermal shutdown circuit operates,and the operation of the stepping motor 121 is stopped. On the otherhand, in the case where the duty is 80%, since the heat generationamount does not fall within the thermal shutdown area, the thermalshutdown circuit 120 c does not operate. As shown in FIG. 12B, in thecase where the off time is T3, since the heat generation amount does notfall within the stepping motor burnout area both in the case where theduty is 100% and in the case where the duty is 80%, it is possible toprevent the stepping motor 121 from being burnt out incidentally, T3, T1and T2 have the relation of T2>T2>T3.

When the current set value, the decay, and the off time are set in themanner as stated above, the logic circuit 120 a controls the drivecircuit 120 b based on the control data supplied from the CPU 110. Thedrive circuit 120 b controls and rotates the stepping motor 121according to the control of the logic circuit 120 a. When the steppingmotor 121 is rotated, the tube pump 30 connected to the motor is driven,and the cleaning process of the recording head 15 is performed.

During the cleaning process of the recording head 15, for example, inthe case where the program stored in the ROM 111 runs away and thereoccurs such a state that electric power continues to be supplied to thestepping motor 121 from the drive circuit 120 b (in the case where theduty becomes substantially 100%), as shown in FIGS. 10 to 12,irrespective of the setting of the current value and the decay, thethermal shutdown circuit 120 c operates to stop the operation of thedrive circuit 120 b, and therefore, it is possible to prevent thestepping motor from being excessively heated. Besides, even in the casewhere the duty is 100%, since the stepping motor 121 does not fallwithin the stepping motor burnout area, it is possible to prevent thestepping motor 121 from being damaged by heat.

In the case where the thermal shutdown circuit 120 c is operated, theCPU 110 supplies restart data to the thermal shutdown circuit 120 cthrough the logic circuit 120 a, so that resetting can be performed.

According to the above embodiment, the off time is set according to thekind of the decay and the current set value, and in the case of theabnormal operation where the duty is 100%, the thermal shutdown circuit120 c operates, and in the case of the normal operation where the dutyis 80% or lower, the thermal shutdown circuit 120 c does not operate.Thus, in the case where the abnormal operation occurs due to the runawayof the program or the like, the thermal shutdown circuit 120 c operates,and the supply of electric power to the stepping motor 121 is stopped,and therefore, it is possible to prevent the stepping motor 121 frombeing heated. Besides, even in the case where the duty is 100%, the heatgeneration amount is made not to fall within the stepping motor burnoutarea, and therefore, it is possible to prevent the stepping motor 121from being burnt out.

Incidentally, the above embodiment is an example, and there are variousmodified examples in addition to this. For example, in the aboveembodiment, although the center value between T11 and T12, between T21and T22, or between T31 and T32 is set as the off time, a value otherthan the center value can also be set.

Besides, in the above embodiment, in the case where the duty is 100%,the off time is selected so that the heat generation amount does notfall within the stepping motor burnout area. However, if the thermalshutdown circuit 120 c certainly operates before the stepping motor isburnt out, the heat generation amount may fall within the stepping motorburnout area. Specifically, for example, in FIG. 10, the off time may beset in an area not higher than T11. Besides, since it is conceivablethat the stepping motor burnout area and the thermal shutdown area arechanged according to the environmental change and the individualdifference, in order to cope with such a case, for example, in theexample of FIG. 10, the off time can also be set in an area not lowerthan T12. Incidentally, in such a case, although the stepping motor 121continues the operation state, since the heat generation amount does notfall within the stepping motor burnout area, the stepping motor 121 isnot burnt out.

Besides, although the above embodiment has been described while thestepping motor 121 to drive the tube pump 30 is used as an example, theinvention can also be applied to the stepping motor used for purposesother than this.

Besides, although the above embodiment has been described while thestepping motor 121 is used as an example, the invention can be appliedto, for example, a DC motor.

Besides, although the above embodiment has been described while the fastdecay and the slow decay are used as examples, the invention can beapplied to, for example, the mixed decay in which these are combined.FIG. 13 is a view showing a current waveform in the mixed decay. Asshown in this figure, in the mixed decay, when a current value reachesan instruction value, first, the current is abruptly decreased by thefast decay, and subsequently, the current is gradually decreased by theslow decay. In this case, the total time (τ1+τ2) of a time τ1 of aportion corresponding to the fast decay and a time τ2 of a portioncorresponding to the slow decay is set as the off time. Incidentally,only τ1 or τ2 may be set as the off time.

Besides, in the above embodiment, although the duty at the time ofnormal operation is made 80% or lower, it may be set to a value otherthan this. For example, the duty can also be made 90% or lower, or 70%or lower.

Besides, the above embodiment has been described while using, as anexample, as shown in FIGS. 10 to 12, the case where the curve indicatingthe relation between the off time and the heat generation amount of themotor control circuit 120 is positioned at the right side of the curveindicating the relation between the off time and the heat generationamount of the stepping motor 121. However, in the case where the curveindicating the relation between the off time and the heat generationamount of the motor control circuit 120 is positioned at the left sideof the curve indicating the relation between the off time and the heatgeneration amount of the stepping motor 121, even in the case where theheat generation amount is positioned in the stepping motor burnout area,there is a case where the heat generation amount does not fall withinthe thermal shutdown area. In such a case, the capacity of the steppingmotor is made large, or a member (for example, cooling fin) for coolingis attached to the stepping motor in order to improve the heat radiationcharacteristic, and in the case where the heat generation amount ispositioned at least in the stepping motor burnout area, the heatgeneration amount is made to fall within the thermal shutdown area.

Besides, in the above embodiment, although the two-phase stepping motor121 is used, a one-phase or a three- or more phase stepping motor canalso be used.

Besides, in the embodiment, although the CPU 110 generates the controlsignal, and the logic circuit 120 a receives this and drives the drivecircuit 120 b, the sharing of roles is not limited to the case as statedabove. For example, the logic circuit 120 a can substitutes for thefunction of the CPU 110.

Besides, in the embodiment, although the stepping motor burnout area andthe thermal shutdown area are fixed, it is conceivable that these arechanged by the heat radiation characteristic or environmentaltemperature. Thus, for example, the environmental temperature isdetected by a sensor, these areas are redefined according to thedetected result, and the off time may be set according to the redefinedareas. According to such an example, it is possible to provide astepping motor control apparatus which hardly receive the influence ofthe environmental temperature or the like.

Incidentally, the above processing function can be realized by acomputer. In that case, there is provided a program describing theprocessing content of the function which the stepping motor driveapparatus should have. The computer executes the program, so that theabove processing function is realized on the computer. The programdescribing the processing content can be recorded on a computer readablerecording medium. The computer readable recording medium includes amagnetic recording device, an optical disk, a magneto-optical recordingmedium, a semiconductor memory, etc. The magnetic recording deviceincludes a hard disk device (HDD), a flexible disk (FD), a magnetictape, etc. The optical disk includes a DVD (Digital Versatile Disk), aDVD-RAM, a CD-ROM (Compact Disk ROM), a CD-R (Recordable)/RW(ReWritable), etc. The magneto-optical recording medium includes MO(Magneto-Optical disk), etc.

In the case where the program is put into circulation, a portablerecording medium, such as, for example, a DVD or a CD-ROM on which theprogram is recorded, is sold. Besides, the program is stored in astorage device of a server computer, and the program can be transferredfrom the server computer to another computer trough a network.

The computer to execute the program stores, for example, the programrecorded on the portable recording medium or the program transferredfrom the server computer into its own storage device. The computer readsthe program from its own storage device, and executes the processing inaccordance with the program. Incidentally, the computer directly readsthe program from the portable recording medium, and can execute theprocessing in accordance with the program. Besides, the computer canperform the processing in accordance with the received program each timethe program is transferred from the server computer.

1. A stepping motor control apparatus comprising: a control circuit thatcontrols sequence of excitation of a stepping motor; a switching circuitthat switches electric power to be supplied to the stepping motor basedon an instruction from the control circuit; and a stop circuit thatstops an operation of the switching circuit when temperature of theswitching circuit becomes a specified temperature or higher, wherein thecontrol circuit controls the switching circuit such that the stopcircuit operates before the stepping motor is damaged by heat.
 2. Thestepping motor control apparatus according to claim 1, wherein thecontrol circuit adjusts an off time in which a switch constituting theswitching circuit keeps an off state, and thereby the control circuitcontrols the switching circuit.
 3. The stepping motor control apparatusaccording to claim 2, wherein the control circuit adjusts the off timein accordance with a set value of current to be outputted to thestepping motor.
 4. The stepping motor control apparatus according toclaim 2, wherein the control circuit adjusts the off time in accordancewith a kind of decay of the switching circuit.
 5. A stepping motorcontrol method for a stepping motor control apparatus including: acontrol circuit that controls sequence of excitation of a steppingmotor; a switching circuit that switches electric power to be suppliedto the stepping motor based on an instruction from the control circuit;and a stop circuit that stops an operation of the switching circuit whentemperature of the switching circuit becomes a speed temperature orhigher, the method comprising: receiving a control signal forcontrolling the stopping motor; and controlling the switching circuit bythe control circuit so that the stop circuit operates before thestepping motor is damaged by heat.
 6. The stepping motor control methodaccording to claim 5, wherein the controlling the switching circuitcomprising: adjusting an off time in which a switch constituting theswitching circuit keeps an off state.
 7. The stepping motor controlmethod according to claim 6, wherein the off time is adjusted inaccordance with a set value of current to be outputted to the steppingmotor.
 8. The stepping motor control method according to claim 6,wherein the off time is adjusted in accordance with a kind of decay ofthe switching circuit.
 9. A program product executed in a computer,including a set of instructions for controlling a stepping motor controlapparatus including: a control circuit that controls sequence ofexcitation of a stepping motor; a switching circuit that switcheselectric power to be supplied to the stepping motor based on aninstruction from the control circuit; and a stop circuit that stops anoperation of the switching circuit when temperature of the switchingcircuit becomes a specified temperature or higher, the set ofinstructions comprising: receiving a control signal for controlling thestepping motor; and controlling the switching circuit by the controlcircuit so that the stop circuit operates before the stepping motor isdamaged by heat.
 10. The program product according to claim 9, whereinthe controlling the switching circuit comprising: adjusting an off timein which a switch constituting the switching circuit keeps an off state.11. The program product according to claim 10, wherein the off time isadjusted in accordance with a set value of current to be outputted tothe stepping motor.
 12. The program product according to claim 10,wherein the off time is adjusted in accordance with a kind of decay ofthe switching circuit.
 13. A stepping motor control apparatuscomprising: a control circuit that controls sequence of excitation of astepping motor; a switching circuit that switches electric power to besupplied to the stepping motor based on an instruction from the controlcircuit; and a stop circuit that stops an operation of the switchingcircuit when temperature of the switching circuit becomes a specifiedtemperature or higher, wherein the control circuit controls an off timein which a switch constituting the switching circuit keeps an off statebetween a first time in which the stepping motor is not damaged by heatat a specified duty and a second time in which the stop circuit operatesat the specified duty.
 14. The stepping motor control apparatusaccording to claim 13, wherein the specified duty is 100%.
 15. Astepping motor control apparatus comprising: a control circuit thatcontrols sequence of excitation of a stepping motor; and a switchingcircuit that switches electric power to be supplied to the steppingmotor based on an instruction from the control circuit, wherein thecontrol circuit, when the switching circuit becomes a predeterminedtemperature or higher, prolongs an off time in which a switchconstituting the switching circuit keeps an off state.